package manager;

import entities.PatientMaterial;
import entities.ShiftRequest;
import entities.ViewPatientMaterial;
import entities.ViewScheduler;
import java.util.ArrayList;

public class DoctorDriver {

    private DataManager dataManager;

    public DoctorDriver(DataManager dataManager) {
        this.dataManager = dataManager;
    }

    public ArrayList<ViewScheduler> showEmployeeDepH() {
        int employeeID = dataManager.getUser().getUserID();
        return dataManager.showViewSchedulerByEID(employeeID);
    }
    
    public ArrayList<ShiftRequest> showShiftRequest(int userID) {
        return dataManager.showSRByEID(userID);
    }
    
    public boolean insertRequest(ShiftRequest request) {
        return dataManager.insertShiftRequest(request);
    }
    
    public boolean updateRequest(ShiftRequest request) {
        return dataManager.updateShiftRequest(request);
    }
    
    public boolean deleteRequest(ShiftRequest request) {
        return dataManager.deleteShiftRequest(request);
    }
    
    public ArrayList<ViewScheduler> showEShedulerInDep(int eid, int did) {
        return dataManager.showESchedulerInDep(eid, did);
    }
    
    public ArrayList<ViewPatientMaterial> showViewPatientMaterialByEID(int did) {
        return dataManager.showViewPatientMaterialByEID(did);
    }
    
    public boolean updatePatientMaterial(PatientMaterial record) {
        return dataManager.updatePatientMaterial(record);
    }
}
